package com.hctforgreen.greenservice.model;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 开机密码 可在intent中传递的bean（wuhs20150911）
 * 
 * @author ld 20140414
 * 
 */
public class PwdEntity implements Parcelable {
	public int _id = -1;
	/**
	 * // 身份码
	 */
	public String identityCode="";
	/**
	 * // 条码
	 */
	public String stripeCode = "";
	/**
	 * // 开机密码
	 */
	public String openPassword = "";
	public String projectName = "";
	public String ownerName = "";// 业主名
	public String ownerPhone = "";
	public String note = "";
	public String date = "";// 2014-04-15
	public String time = "";// 11:26
	public String dateTime = "";

	public String province = "";// 省
	public String city = "";// 市
	public String district = "";// 区
	public String street = "";// 街道
	public String industry = "";// 安装行业
	public String remark = "";// 备注
	public String phone = "";// 帐号，手机号
	/**
	 * // 备用密码
	 */
	public String sparebootPwd = "";

	public String isBigUnit = "0";// 是否是大机组，1为大机组
	/**
	 * 0:申请中
	 * 1:申请通过
	 * 2:拒绝
	 * 3:报完成
	 */
	public String verifyStatus = "0";// 审核状态
	public String refuseReason = "";// 拒绝理由
	public String finished = "0";// 申请完成状态,1--完成

	@Override
	public int describeContents() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public void writeToParcel(Parcel dest, int flags) {
		dest.writeInt(_id);
		dest.writeString(identityCode);
		dest.writeString(stripeCode);
		dest.writeString(openPassword);
		dest.writeString(projectName);
		dest.writeString(ownerName);
		dest.writeString(ownerPhone);
		dest.writeString(note);
		dest.writeString(date);
		dest.writeString(time);
		dest.writeString(province);
		dest.writeString(city);
		dest.writeString(district);
		dest.writeString(street);
		dest.writeString(industry);
		dest.writeString(remark);
		dest.writeString(phone);
		dest.writeString(sparebootPwd);
		dest.writeString(isBigUnit);
		dest.writeString(verifyStatus);
		dest.writeString(refuseReason);
		dest.writeString(finished);
		dest.writeString(dateTime);

	}

	public static final Parcelable.Creator<PwdEntity> CREATOR = new Parcelable.Creator<PwdEntity>() {
		public PwdEntity createFromParcel(Parcel in) {
			return new PwdEntity(in);
		}

		public PwdEntity[] newArray(int size) {
			return new PwdEntity[size];
		}
	};

	private PwdEntity(Parcel in) {
		_id = in.readInt();
		identityCode = in.readString();
		stripeCode = in.readString();
		openPassword = in.readString();
		projectName = in.readString();
		ownerName = in.readString();
		ownerPhone = in.readString();
		note = in.readString();
		date = in.readString();
		time = in.readString();
		province = in.readString();
		city = in.readString();
		district = in.readString();
		street = in.readString();
		industry = in.readString();
		remark = in.readString();
		phone = in.readString();
		sparebootPwd = in.readString();
		isBigUnit = in.readString();
		verifyStatus = in.readString();
		refuseReason = in.readString();
		finished = in.readString();
		dateTime = in.readString();
	}

	public PwdEntity() {

	}

}
